package com.lyl.domaindemo.repository.export;

import com.lyl.domaindemo.domain.export.CommonExport;
import com.lyl.domaindemo.domain.export.CommonExportServiceRepository;
import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * @author lyl
 * @date 2023/6/8
 */
@Component
public class CommonExportServiceRepositoryImpl implements CommonExportServiceRepository {

    private final CommonExportRepository commonExportRepository;

    public CommonExportServiceRepositoryImpl(CommonExportRepository commonExportRepository) {
        this.commonExportRepository = commonExportRepository;
    }

    @Override
    public Optional<CommonExport> commonExport(String id) {
        return commonExportRepository.findById(id);
    }
}
